package com.wuzf.mall_test.config

import android.app.Application
import com.joanzapata.iconify.Iconify
import com.joanzapata.iconify.fonts.FontAwesomeIcons
import com.joanzapata.iconify.fonts.FontAwesomeModule
import com.wuzf.mall.global.Mall

class MyApplication : Application() {

    override fun onCreate() {
        super.onCreate()

        Mall.init(this)
            .withApiHost("http://class.imooc.com/mock/api/")
            // 延迟多长时间加载
            .withDelayTime(1000L)
            .configure()
        // 引入iconify
        Iconify.with(FontAwesomeModule())
    }
}